/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sessionBeans;

import java.util.List;
import javax.ejb.Local;
import entityBeans.Comment;

/**
 *
 * @author user
 */
@Local
public interface CommentFacadeLocal {

    void create(Comment comment);
    
/*
 *This method will write data into "Comment" and "Commented_on" tables
 */
    void submitComment (Comment comment);
    
    void edit(Comment comment);

    void remove(Comment comment);

    Comment find(Object id);

    List<Comment> findAll();

    List<Comment> findRange(int[] range);

    int count();
    
}